package com.scc.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.scc.entity.Questions;
import com.scc.mapper.QuestionsMapper;
import com.scc.service.IQuestionsService;

@Service("questionsService")
public class QuestionsServiceImpl implements IQuestionsService{

	@Resource
	private QuestionsMapper questionsMapper;
	@Override
	public List<Questions> findAll() {
		return questionsMapper.selAll();
	}

	@Override
	public int insQuesions(Questions ques) {
		return questionsMapper.insQuestion(ques);
	}

	@Override
	public Questions selById(long id) {
		return questionsMapper.selById(id);
	}
	
}
